package com.mijie.homi.search.service.index;

 
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import net.sf.json.JSONArray;

public class moodUserIndexserviceTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Map  m=new HashMap<String, Object>();
		m.put("moodContent",  "我是班花但有些人不觉得因为我牙齿不整齐想带牙套可是又怕他们不选我了又想直接带假牙但又舍不得牙齿");
		m.put("lastLoginAt", 1359790656000l);
		m.put("match",60);
		Map  m2=new HashMap<String, Object>();
		m2.put("moodContent",  "又是一个睡不着的夜。又要天亮了");
		m2.put("lastLoginAt", 1336792672000l);
		m2.put("match",60);
		
  List<Map> li=new ArrayList<Map>();
  li.add(m);li.add(m2);
		
		 MoodUserIndexService c=new MoodUserIndexService();
		 c.orderByCreateTime(li);
		 
			String eventStrformatx = JSONArray.fromObject(li).toString(2);
		System.out.println(eventStrformatx);
			// ///

	}

}
